﻿   
 
using System;
using System.Threading.Tasks;
using System.Linq.Expressions;
 
using Oliving.Edge.Model;
using Oliving.Edge.Model.Dto;
using Oliving.Edge.Model.Models;
using Oliving.Edge.IServices;
using Oliving.Edge.IRepository;
using Oliving.Edge.Services.BASE;
using Oliving.Edge.Model.Dto.MQXT; 
using Oliving.Edge.IRepository.MQXT;
using Oliving.Edge.IServices.MQXT;
using Oliving.Edge.Model.Models.MQXT;

namespace Oliving.Edge.Services.MQXT{
                public partial class CaiJiQiModelValueServices : BaseServices<CaiJiQiModelValue>, ICaiJiQiModelValueServices
    {
        ICaiJiQiModelValueRepository _dal;
        public CaiJiQiModelValueServices(ICaiJiQiModelValueRepository dal)
        {
            this._dal = dal;
            base.BaseDal = dal;
        } 
    
               

        public async Task<PageModel<CaiJiQiModelValuePageDto>> QueryPageList(
            Expression<Func<CaiJiQiModelValue, bool>> whereExpression,
            int pageIndex = 1, int pageSize = 20,
            string sortField = null, string sortOrder = null
            )
        {
            var page = await _dal.QueryPageList(
                whereExpression,
                pageIndex, pageSize,
                    sortField, sortOrder);
            return page;
        }
 
            

    }
}
     
